package OoDay01;
//Student类的测试类
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zg=new Student();
        zg.name="张光";
        zg.age=22;
        zg.className="jsd2405";
        zg.stuId="001";
        //调用方法
        zg.study();
        zg.sayHi();
        zg.playWith("李林");

        Student ll=new Student();
        ll.name="李林";
        ll.age=25;
        ll.className="jsd2405";
        ll.stuId="002";
        ll.study();
        ll.sayHi();
        ll.playWith("张光");

        Student zl=new Student();
        zl.name="张亮";
        zl.study();
        zl.sayHi();
        zl.playWith("李林");


    }
}
